Skip to content

pre-commit: update Black to 26.5.1#3257

Open
agsaru wants to merge 2 commits into
Netflix:masterfrom
agsaru:prec
Open

pre-commit: update Black to 26.5.1#3257
agsaru wants to merge 2 commits into
Netflix:masterfrom
agsaru:prec

Conversation

@agsaru

@agsaru agsaru commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

PR Type

  • Bug fix
  • New feature
  • Core Runtime change (higher bar -- see CONTRIBUTING.md)
  • Docs / tooling
  • Refactoring

Summary

  • Update Black repository URL to psf/black
  • Bump Black revision to 26.5.1
  • Remove outdated click<8.1.0 dependency pin
  • Added--fast flag to bypass AST safety checks on older runtimes
  • Added py315 to target versions new black version supports python 3.15 version

Copilot AI review requested due to automatic review settings June 10, 2026 18:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@greptile-apps

greptile-apps Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR updates the Black pre-commit hook from 25.12.0 to 26.5.1, switching the repo URL to the canonical psf/black, removing the now-unnecessary click<8.1.0 pin, and adding py315 as a target version. The remaining 22 files are purely mechanical Black reformatting outputs (removing extra blank lines after import blocks and collapsing multi-line string-literal calls to inline openings).

  • .pre-commit-config.yaml: bumps Black to 26.5.1, canonical repo URL, drops stale click pin, adds py315 target.
  • All other changed files: no logic changes — only whitespace/blank-line adjustments produced by running the new formatter.

Confidence Score: 5/5

Safe to merge — the only substantive change is the Black version bump in pre-commit config; all other edits are mechanical formatter output with no logic changes.

The pre-commit config change is a straightforward tooling update (correct canonical URL, version bump, stale-pin removal, new target version). Every other file change is a direct, no-logic-change output of running the updated formatter.

No files require special attention.

Important Files Changed

Filename Overview
.pre-commit-config.yaml Updates Black from 25.12.0 to 26.5.1, switches repo URL to psf/black, removes the stale click<8.1.0 pin, and adds py315 as a target version
metaflow/cmd/develop/stubs.py Black reformatting: multi-line f.write calls collapsed to single-line opening; no logic changes
metaflow/runner/click_api.py Black reformatting: raise RuntimeError string collapsed to inline opening; no logic changes
metaflow/init.py Removes a single blank line between import groups; purely cosmetic Black formatting change
metaflow/plugins/airflow/airflow_utils.py Removes trailing blank line after imports block; purely cosmetic Black formatting change
metaflow/plugins/datastores/azure_storage.py Removes blank line between import groups; purely cosmetic Black formatting change
metaflow/plugins/datastores/s3_storage.py Removes blank line between import groups; purely cosmetic Black formatting change
test/unit/test_artifact_serializer.py Removes blank line between imports and comment block; purely cosmetic Black formatting change
test/ux/core/test_compliance.py Removes blank line between imports and comment block; purely cosmetic Black formatting change

Reviews (2): Last reviewed commit: "removed arg fast" | Re-trigger Greptile

Comment thread .pre-commit-config.yaml Outdated
@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (master@9ae682a). Learn more about missing BASE report.

Files with missing lines Patch % Lines
metaflow/cmd/develop/stubs.py 0.00% 2 Missing ⚠️
metaflow/runner/click_api.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #3257   +/-   ##
=========================================
  Coverage          ?   29.08%           
=========================================
  Files             ?      381           
  Lines             ?    52513           
  Branches          ?     9266           
=========================================
  Hits              ?    15274           
  Misses            ?    36203           
  Partials          ?     1036           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants